<!--{if empty($diymode)}-->
<!--{template common/header}-->
<div id="pt" class="bm cl">
	<!--{subtemplate common/simplesearchform}-->
	<div class="z">
		<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>&rsaquo;</em>
		<a href="home.php">$_G[setting][navs][4][navname]</a> <em>&rsaquo;</em> 
		<a href="home.php?mod=space&do=favorite">{lang favorite}</a> <em>&rsaquo;</em> 
		<a href="home.php?mod=space&uid=$space[uid]&do=favorite&view=me">{$space[username]}{lang somebody_favorite}</a>
	</div>
</div>

<style id="diy_style" type="text/css"></style>
<div class="wp">
	<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
</div>

<div id="ct" class="ct2_a wp cl">
	<div class="mn">
		<!--[diy=diycontenttop]--><div id="diycontenttop" class="area"></div><!--[/diy]-->
		<div class="bm bw0">
			<!--{hook/space_favorite_top}-->
			<h1 class="mt"><img alt="favorite" src="{STATICURL}image/feed/favorite.gif" class="vm" /> {lang favorite}</h1>
			<!--{hook/space_favorite_bottom}-->
			<ul class="tb cl">
				<li$actives[all]><a href="home.php?mod=space&uid=$space[uid]&do=favorite&view=me&type=all">{lang favorite_all}</a></li>
				<li$actives[thread]><a href="home.php?mod=space&uid=$space[uid]&do=favorite&view=me&type=thread">{lang favorite_thread}</a></li>
				<li$actives[forum]><a href="home.php?mod=space&uid=$space[uid]&do=favorite&view=me&type=forum">{lang favorite_forum}</a></li>
				<li$actives[group]><a href="home.php?mod=space&uid=$space[uid]&do=favorite&view=me&type=group">{lang favorite_group}</a></li>
				<li$actives[blog]><a href="home.php?mod=space&uid=$space[uid]&do=favorite&view=me&type=blog">{lang favorite_blog}</a></li>
				<li$actives[album]><a href="home.php?mod=space&uid=$space[uid]&do=favorite&view=me&type=album">{lang favorite_album}</a></li>
				<li$actives[article]><a href="home.php?mod=space&uid=$space[uid]&do=favorite&view=me&type=article">{lang favorite_article}</a></li>
			</ul>
<!--{else}-->
<!--{template home/space_header}-->
	<div id="ct" class="wp n cl">
		<div class="mn">
			<div class="bm">
				<h1 class="mt">{lang favorite}</h1>
<!--{/if}-->
			<!--{if $list}-->
			<ul id="favorite_ul" class="el favl">
				<!--{loop $list $k $value}-->
				<li id="fav_$k">
					<a class="o" id="a_delete_$k" href="home.php?mod=spacecp&ac=favorite&op=delete&favid=$k" onclick="showWindow(this.id, this.href, 'get', 0);">{lang delete}</a>
					$value[icon]
					<a href="$value[url]" target="_blank">$value[title]</a> <span class="xg1"><!--{date($value[dateline], 'u')}--></span>
					<!--{if $value[description]}-->
					<div class="quote">
						<blockquote id="quote_preview">$value[description]</blockquote>
					</div>
					<!--{/if}-->
				</li>
				<!--{/loop}-->
			</ul>
			<!--{if $multi}--><div class="pgs cl mtm">$multi</div><!--{/if}-->
			<!--{else}-->
			<p class="emp">{lang no_favorite_yet}</p>
			<!--{/if}-->
<!--{if empty($diymode)}-->
		</div>
		<!--[diy=diycontentbottom]--><div id="diycontentbottom" class="area"></div><!--[/diy]-->
	</div>

	<div class="appl">
		<!--{subtemplate common/userabout}-->

		<div class="drag">
			<!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
		</div>

	</div>
</div>

<div class="wp mtn">
	<!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
</div>

<!--{else}-->
		</div>
	</div>
	<div class="sd">
		<!--{subtemplate home/space_userabout}-->
	</div>
</div>
<!--{/if}-->
<script type="text/javascript">
	function favorite_delete(favid) {
		var el = $('fav_' + favid);
		if(el) {
			el.style.display = "none";
		}
	}
</script>
<!--{template common/footer}-->
